import { _decorator, Label } from "cc";
import { regView, BaseView } from "../../../../../extensions/cocos-scaffold-3x/assets/ui/base/BaseView";
import { ViewJoker } from "../../ViewJoker";
import { JC } from "../../m/JokerStorage";

const { ccclass, property } = _decorator;


export class ViewJokerLoseProp {
    constructor(
        public viewJoker: ViewJoker,
        public stageInfo: JC.PokerGameStage
    ) { }
}

@regView({
    bundle: "subBundle",
    prefabPath: "joker/v/loseGame/ViewJokerLose"
}) @ccclass('ViewJoker')
export class ViewJokerLose extends BaseView<ViewJokerLoseProp> {


    onOpen() {
   

    }

    onTouchContitnue() {
        this.prop.viewJoker.startNew()
        this.close()
    }

}
